package com.zyw.security.shiro.web.authc.tk;

import org.apache.shiro.authc.HostAuthenticationToken;

/**
 * 基础 token
 *
 * @author zhangyw
 * @date 2018/1/25 9:22
 */
public abstract class BasicAuthcToken implements HostAuthenticationToken {

    private String host;

    public BasicAuthcToken() {
    }

    public void setHost(String host) {
        this.host = host;
    }

    @Override
    public String getHost() {
        return this.host;
    }

    @Override
    public abstract Object getPrincipal();

    @Override
    public abstract Object getCredentials();
}
